home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / dosguide.exe / HELPDOS.ZIP / SORT.HLP < prev    next >
Text File  |  1985-09-10  |  1KB  |  38 lines

  1. -------------------------  SORT - External DOS Command  ------------------------
  2.  
  3. SORT sorts lines of input data and writes out the sorted lines.
  4.  
  5. FORMAT:   SORT [/R][/+n]
  6.  
  7. REMARKS:
  8.  
  9.    The default sort sequence is ascending;  A comes before Z.
  10.  
  11.    /R  - specifies a reverse sort, so that Z comes before A.
  12.  
  13.    +n  - "n" is an integer specifying the starting column of the sort.  If "n"
  14.          is not specified, the sort starts in column 1.
  15.  
  16.    The maximum file size that can be sorted is 64,512 characters.
  17.  
  18. NOTE:  In DOS Version 3, you may preface SORT with the drive letter and
  19.    directory path, [d:][path], where the command file can be found.
  20.  
  21. EXAMPLES:
  22.  
  23. Display directory information sorted by filename/extension (the sort begins in
  24. column 1):
  25.  
  26.       DIR | SORT
  27.  
  28.  
  29. Display directory information sorted by the file size:
  30.  
  31.       DIR | SORT /+14
  32.  
  33.  
  34. Sort the file MYFILE in reverse order.  Begin the sort in column 5.  Write the
  35. sorted data to MYFILE.SRT file:
  36.  
  37.       SORT /R/+5 < MYFILE > MYFILE.SRT
  38.